using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace FITHOU.FormDesign
{
    public partial class XtraFrmDangNhap : DevExpress.XtraEditors.XtraForm
    {
        private bool kt = true;
        public XtraFrmDangNhap()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if ((txtuser.Text == "hthuyet") && (txtPass.Text == "hthuyeet2435"))
                this.Dispose();
            else
                MessageBox.Show("Ban da dang nhap sai!");
        }

        private void XtraFrmDangNhap_Load(object sender, EventArgs e)
        {
            txtuser.Focus();
            if ((txtuser.Text != "") && (txtPass.Text != ""))
                simpleButton1.AllowFocus = true;
        }

        public bool ktra
        {
            get { return kt; }
            set { kt = value; }
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.Dispose();
            kt = false;
        }
    }
}